package com.gitee.wsl.ext.string

enum class TokenType(val delimiters: Set<String>) {
    STRING(setOf("\"")),
    ARRAY(setOf("[", "]")),
    OBJECT(setOf("{", "}")),
    KEY_SEPARATOR(setOf(":")),
    VALUE_SEPARATOR(setOf(",")),
    BOOLEAN(setOf("true", "false")),
    NONE(setOf());

    companion object {
        val allPossibleTokens = entries.map { it.delimiters }.flatten().toSet()
    }
}